package com.scau.dairy.action;

import javax.json.JsonObject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.alibaba.fastjson.JSONObject;
import com.scau.dairy.pojo.Project;
import com.scau.dairy.service.ProjectManaService;

/**
 * 
 * @author Administrator
 *
 */
@Controller
public class ProjectManagement {

	@Autowired
	public ProjectManaService proSer;
	@RequestMapping(value = "projectQuery",method = RequestMethod.POST)
	public String getProMan(int id){
		Project p = proSer.selectByPrimaryKey(id);
		JSONObject obj = (JSONObject) JSONObject.toJSON(p);
		String result = obj.toString();
		return result;
	}
	
}
